<?php

namespace App\Http\Resources\Counter;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class CostRuleResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'name' => $this->name,
            'type' => $this->type,
            'cost_data' => $this->data,
            'created_at' => $this->created_at,
            'table_type' => $this->table_type,
            'assistant_type_id' => $this->assistant_type_id,
            'classify' => $this->classify,
        ];
    }
}
